package Lesson;
/*
三个和尚
 */
public class Demo06 {
    public static void main(String[] args) {
        int height1 = 150;
        int height2 = 210;
        int height3 = 165;

        //获取前两个变量的最大值
        int tempMax = height1 < height2?height1:height2;

        //获取最大值
        int max = tempMax > height3?tempMax:height3;

        System.out.println(max);
    }
}
